const Trade = () => import(/* webpackChunkName: "Trade" */ "@/views/trade/index")
const SuppliesBoardDisclaimer = () => import(/* webpackChunkName: "SuppliesBoard" */ "@/views/trade/supply/post/disclaimer")
const SuppliesBoardSuccess = () => import(/* webpackChunkName: "SuppliesBoard" */ "@/views/trade/supply/post/success")
const Search = () => import(/* webpackChunkName: "Search" */ "@/views/trade/search")
const Shops = () => import(/* webpackChunkName: "Shops" */ "@/views/trade/shop/list")
const Shop = () => import(/* webpackChunkName: "Shops" */ "@/views/trade/shop/detail")
const Collection = () => import(/* webpackChunkName: "collection" */ "@/views/trade/collection/collection")
const FocusShop = () => import(/* webpackChunkName: "collection" */ "@/views/trade/focus/focushop")
const UserSupplies = () => import(/* webpackChunkName: "UserSupplies" */ "@/views/trade/user/supplies")
const UserDemands = () => import(/* webpackChunkName: "UserDemands" */ "@/views/trade/user/demands")

// import {redirect} from '@/modules/util'

export default [
  {
    path: "/trade", //首页
    name: "trade",
    meta: { showTab: true },
    component: Trade
  },
  {
    path: "/trade/collection", //收藏列表
    name: "collection",
    component: Collection
  },
  {
    path: "/trade/focus", //关注列表
    name: "focus",
    component: FocusShop
  },
  {
    path: "/trade/disclaimer",
    name: "suppliesBoardDisclaimer",
    component: SuppliesBoardDisclaimer,
    meta: { requiresAuth: true, requiresFish: true }
  },  
  {
    path: "/trade/post/success",
    name: "suppliesBoardSuccess",
    component: SuppliesBoardSuccess,
    meta: { requiresAuth: true }
  },
  {
    path: "/trade/shops", //店铺列表
    name: "shops",
    component: Shops
  },
  {
    path: "/trade/shop/:id", //店铺详情
    name: "shop",
    component: Shop
  },
  
  {
    path: "/trade/search",
    name: "search",
    component: Search
  },
  {
    path: "/trade/user/supplies",
    name: "userSupplies",
    component: UserSupplies
  },
  {
    path: "/trade/user/demands",
    name: "userDemands",
    component: UserDemands
  },
]
